#include<iostream>

using namespace std;


int main()
{
	unsigned char bits = 1;
	//00000000 00000000 00000000 00000001
	std::cout << sizeof(unsigned int) << std::endl;
	printf("%d\n",bits << 8);
	//00000000 00000000 00000001 00000000
	printf("%d\n",bits << 31);
	//10000000 00000000 00000000 00000000
	printf("%d\n",bits >> 1);
	//00000000 00000000 00000000 00000000
	printf("%d\n",~bits);
	//11111111 11111111 11111111 11111110
	

	unsigned char b1 = 0145;
	//01100101
	unsigned char b2 = 0257;
	//10101111
	
	printf("%d\n",b1 & b2);
	//00100101

	printf("%d\n",b1 | b2);
	//11101111

	printf("%d\n",b1 ^ b2);
	//11001010

	
	return 0;
}
